<include file="Public:header" />
<div class="main">
<div class="position">
    <p>您的当前位置：<a href="/">首页</a> &gt; 新房 </p>
</div>
<div class="search_criteria">
    <div class="search_criteria_top">
        <ul>
            <li class="ser_nav"><a href="{:U('House/index')}">楼盘搜索</a></li>
            <li><a href="{:U('Map/index',array('type'=>'house'))}">地图找房</a></li>
        </ul>
        <div class="search_gs ">
            <form method="get"  id="soForm">
                <input type="hidden" value="Home" name="m">
                <input type="hidden" value="House" name="c">
                <input type="hidden" value="index" name="a">
            <span class="search_gs_s1"><input name="key" type="text" class="sear_inp" id="houseKey" value="请输入您要搜索的关键字" /></span>
            <span class="search_gs_s1"><a href="javascript:;" id="so_but" class="but10">搜索</a></span>
            </form>
        </div>
    </div>
    <div class="ser_body">
        <div class="ser_body01 overflow_h">
            <span class="ser_body01_title">当前找房条件：</span>
            <ul>
                <volist name='s' id='vo'>
                    <li><a href="{$vo.url}"><span class="ser_ico"></span>{$vo.name}</a></li>
                </volist>
            </ul>
        </div>
        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">区域</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('House/index','alias',$url)}">不限</a></li>
                        <li><span class="ser_metro"><a href="{:getUrl('House/index','metro',$url)}">地铁房</a></span></li>
                        <volist name='house_cate' id='vo'>
                            <li <php>if($cate_pid_info['alias']==$vo['alias']){</php> class="b" <php>}</php>><a title="{$vo.name}" href="{:getUrl('House/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>if($houseArr['arr']['metro']){</php>
                <div class="ser_b02_n2 overflow_h">
                    <ul>
                        <volist name='cate_pid_list' id='vo'>
                            <li  <php>if($url['metro']==$vo['id']){</php> class="b" <php>}</php> ><a title="{$vo.name}" href="{:getUrl('House/index','metro',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>}else if($cate_pid_list){</php>
                <div class="ser_b02_n2 overflow_h">
                    <ul>
                        <volist name='cate_pid_list' id='vo'>
                            <li  <php>if($url['alias']==$vo['alias']){</php> class="b" <php>}</php> ><a title="{$vo.name}" href="{:getUrl('House/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>}</php>
            </div>
        </div>
        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">价格</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('House/index','price',$url)}">不限</a></li>
                        <volist name='menu[19]' id='vo'>
                            <li <php>if($url['price']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('House/index','price',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">特色</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('House/index','tags',$url)}">不限</a></li>
                        <volist name='menu[6]' id='vo'>
                            <li <php>if($url['tags']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('House/index','tags',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">户型</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('House/index','roomType',$url)}">不限</a></li>
                        <volist name='menu[3]' id='vo'>
                            <li <php>if($url['roomType']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('House/index','roomType',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
        <div class="ser_body03" style="height: 30px;">
            <span class="ser_b03_title">更多：</span>
            <ul>
                <li class="droplist">
                    <em>{$url['houseType'] ? $s['houseType']['name'] : '楼盘类型' }</em>
                    <div>
                        <a <php>if(!$url['houseType']){</php> class="a_select" <php>}</php> href="{:getUrl('House/index','houseType',$url)}">不限</a>
                        <volist name='menu[2]' id='vo'>
                            <a <php>if($url['houseType']==$vo['id']){</php> class="a_select" <php>}</php>  href="{:getUrl('House/index','houseType',$url,$vo['id'])}">{$vo.name}</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['houseStatus'] ? $s['houseStatus']['name'] : '楼盘状态' }</em>
                    <div>
                        <a <php>if(!$url['houseStatus']){</php> class="a_select" <php>}</php> href="{:getUrl('House/index','houseStatus',$url)}">不限</a>
                        <volist name='menu[4]' id='vo'>
                            <a <php>if($url['houseStatus']==$vo['id']){</php> class="a_select" <php>}</php>  href="{:getUrl('House/index','houseStatus',$url,$vo['id'])}">{$vo.name}</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['renovationType'] ? $s['renovationType']['name'] : '装修类型' }</em>
                    <div>
                        <a <php>if(!$url['renovationType']){</php> class="a_select" <php>}</php> href="{:getUrl('House/index','renovationType',$url)}">不限</a>
                        <volist name='menu[10]' id='vo'>
                            <a <php>if($url['renovationType']==$vo['id']){</php> class="a_select" <php>}</php>  href="{:getUrl('House/index','renovationType',$url,$vo['id'])}">{$vo.name}</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['floor'] ? $s['floor']['name'] : '楼层' }</em>
                    <div>
                        <a <php>if(!$url['floor']){</php> class="a_select" <php>}</php> href="{:getUrl('House/index','floor',$url)}">不限</a>
                        <volist name='menu[9]' id='vo'>
                            <a <php>if($url['floor']==$vo['id']){</php> class="a_select" <php>}</php>  href="{:getUrl('House/index','floor',$url,$vo['id'])}">{$vo.name}</a>
                        </volist>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="body_house overflow_h">
<div class="body_left">
<div class="body_title">
    <ul>
        <li><a href="{:getUrl('House/index','sort',$url)}" <php>if(!$url['sort']){</php>class="selected"<php>}</php> >默认排序</a></li>
        <li><a href="{:getUrl('House/index','sort',$url,$houseArr['sort'][1])}" <php>if($url['sort'] && $url['sort']<=2){</php>class="selected"<php>}</php> >时间</a></li>
        <li><a href="{:getUrl('House/index','sort',$url,$houseArr['sort'][2])}" <php>if($url['sort']>=3){</php>class="selected"<php>}</php>>价格</a></li>
    </ul>
    <span class="body_title_r"> <input type="checkbox" <php>if($url['group']){</php> checked <php>}</php>  name="group" id="group" />团购活动</span>
</div>
<div class="overflow_h" style="width:850px ">
<volist name='list' id='vo'>
    <php>
        $arr = getHouseSet($vo);
    </php>
<div class="body_div" style="width: 850px;">
    <div class="overflow_h" style="width: 850px;">
        <div class="body_div01" style="width: 668px;">
         <span class="body_div01_img">
          <div class="buy_t2">{$arr.pic_count}</div>
          <div class="buy_t1">
              <h1><a target="_blank" href="{:U('House/detail',array('id'=>$vo['id']))}">{$vo.title}</a></h1>
          </div><a target="_blank" href="{:U('House/detail',array('id'=>$vo['id']))}"><img src="{$vo.img}" alt="{$vo.title}" title="{$vo.title}" width="180" height="135" /></a></span>
            <h2><a title="{$vo.title}" target="_blank" href="{:U('House/detail',array('id'=>$vo['id']))}">{$vo.title}</a> <span class="text05">&nbsp; [{$menu[10][$vo['renovation_type']]['name']}]&nbsp; [{$menu[4][$vo['house_status']]['name']}]</span></h2>
            <div class="b_div01">
                <php>if(count($arr['tags'])){</php>
                    <volist name="arr['tags']" id='vt' offset="0" length='4'>
                        <a href="javascript:;"><span class="body_div01_span">{$menu[6][$vt]['name']}</span></a>
                    </volist>
                <php>}</php>
            </div>
            <p><span class="body_span"><span class="text06">[{$arr['address'][0]}]</span>{$arr['address'][1]}</span><span class="body_span"><a target="_blank" href="{:U('Map/index',array('hid'=>$vo['id'],'type'=>'house'))}" class="body_span01">地图</a></span></p>
            <p><span class="text06">主推户型：</span>
                <volist name="arr['house_type']" id='val'>
                    <a target="_blank" title="{$val.name}" href="{:U('House/type',array('hid'=>$vo['id'],'id'=>$val['id']))}">{$val.room}室({$val.area}㎡)</a>&nbsp;
                </volist>
                <a target="_blank" href="{:U('House/type',array('hid'=>$vo['id']))}">全部户型</a></p>
        </div>
        <div class="body_div02">
            <h1>均价<span class="text07">{$vo.average_price}</span>元/㎡</h1>
            <php>if($vo['is_group'] && $vo['group_discount']){</php>
            <div class="b_div03">
                <h2>团购特惠</h2>
                <p>{$vo.group_discount}</p>
            </div>
            <php>}else if($vo['discount']){</php>
            <div class="b_div04">
                <p><span class="b_div04_s1">惠</span>{$vo.discount}</p>
            </div>
            <php>}</php>
        </div>
    </div>
    <div class="body_div03">
        <h2><span class="b_div_r"><span class="text08"><span class="b_div_r01"><a class="free_phone" request-url="{:U('Ajax/houseTel',array('id'=>$vo['id']))}" href="javascript:;">免费电话</a></span>{$arr['tel'][0]}</span> <php>if($arr['tel'][1]){</php> 转 <span class="text08">{$arr['tel'][1]}</span><php>}</php></span>
            <php>if($arr['news']){</php>
            楼盘动态：<a target="_blank" href="{:U('News/detail',array('id'=>$arr['news']['id']))}">{$arr['news']['title']}</a>
            <php>}else{</php>
            楼盘动态：无资讯
            <php>}</php>
        </h2>
    </div>
</div>
</volist>
    <div class="plastic_bottom_pages">{$page}</div>
</div>
</div>
<div class="body_right">
    <div class="news_f">
        <h1 class="f_h1"><span class="more"><a href="{:U('House/index')}">更多</a></span>推荐楼盘</h1>
        <ul>
            <volist name='rec_house' id='vo'>
                <li><span class="news_f_img"><a title="{$vo.title}" href="{:U('House/detail',array('id'=>$vo['id']))}"><img src="{$vo.img}" width="120" height="86" /></a></span><h2><a href="{:U('House/detail',array('id'=>$vo['id']))}">{$vo.title}</a></h2><p>{$vo['group_discount'] ? $vo['group_discount'] : $vo['discount']}</p><p><span class="red02">{$vo.average_price}</span>元/平方米</p></li>
            </volist>
        </ul>
    </div>
</div>
</div>
</div>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript">
    $("#houseKey").fangCmsText();
    $("#so_but").click(function(){
        var v = $("#houseKey").val();
        if(v=='' || v=='请输入您要搜索的关键字'){
            msg_show('请输入您要搜索的关键字',2);
            return false;
        }
        $("#soForm").submit();
    });
    $("#group").click(function(){
        if($(this).is(":checked")){
            var url = "{:getUrl('House/index','group',$url,1)}";
            self.location=url;
        }else{
            var url = "{:getUrl('House/index','group',$url)}";
            self.location=url;
        }
    });

</script>
<include file="Public:footer" />